<?php
if(isset($_GET['option'])){
	if(isset($_POST['submit'], $_POST['idProjectDel'])){
		switch($_GET['option']){
			case 'check':
				foreach($_POST['idProjectDel'] as $idProject){
					ProjectModel::delProject($idProject);
				}
			break;
		}
	}
}
require_once MODEL_DIR.'/ProjectModel.php';
$oProjectInstance = new ProjectModel();
$aiassProjectsList = $oProjectInstance->getProjects();
require_once VIEW_DIR.'/formProjectDel.php';
